package com.itentbase.match.mapper;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itentbase.match.pojo.po.FootballMatch;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 足球比赛制图器
 *
 * @author wjl
 * @date 2024-12-26 14:21:40
 */
@Repository
public interface FootballMatchMapper extends BaseMapper<FootballMatch> {


    /**
     * 选择列表
     *
     * @return {@link List }<{@link FootballMatch }>
     * @author wjl
     * @date 2024-12-26 14:58:21
     **/
    @Select("select * from football_match")
    List<FootballMatch> selectLists();

    /**
     * 选择列表
     *
     * @return {@link List }<{@link FootballMatch }>
     * @author wjl
     * @date 2024-12-26 14:58:21
     **/
    default List<FootballMatch> selectLists2(){
        LambdaQueryWrapper<FootballMatch> wrapper=new LambdaQueryWrapper<>();
        if (true){
            wrapper.eq(FootballMatch::getAwayTeamAbbName,"");
        }
        return selectList(wrapper);
    }
}
